<?php
namespace app\index\model;
use app\common\model\Base;

class RizhiJl extends Base
{
    //记录操作日志
    public function setLog($class,$test,$time_rz,$rz_ip,$rz_user,$client=0) {
        $res = RizhiJl::name('rizhi_jl')
                ->bind(['rz_class'=>$class,'rz_test'=>$test,'rz_time'=>$time_rz,'rz_ip'=>$rz_ip,'rz_user'=>$rz_user,'client'=>$client])
                ->insert(['rz_class'=>':rz_class','rz_test'=>':rz_test','rz_time'=>':rz_time','rz_ip'=>':rz_ip','rz_user'=>':rz_user','client'=>':client']);
        return $res;
    }

}